package com.linkhub.oms.dao.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.linkhub.oms.entity.PreemptionStockFlowEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 预占库存流水表 Mapper 接口
 * </p>
 *
 * @author xieyu
 * @since 2024-06-20
 */
public interface PreemptionStockFlowEntityMapper extends MPJBaseMapper<PreemptionStockFlowEntity> {

    List<String> getPreemptedBusinessNo(@Param("businessType") String businessType, @Param("userId") String userId,
                                        @Param("skuId") String skuId, @Param("stashName") String stashName);

    List<PreemptionStockFlowEntity> getByBusinessNos(@Param("businessNos") List<String> businessNos);
}
